package com.aluka.nirvana.framework.core.exception;

/**
 *
 * @author gongli
 * @since 2019/12/25
 */
public enum CommonErrors implements ErrorEnumInterface {
    /**
     *
     */
    SYSTEM_ERROR(new ErrorInfo("X0000", "系统异常")),

    ;
    private ErrorInfo errorInfo;

    CommonErrors(ErrorInfo errorInfo) {
        this.errorInfo = errorInfo;
    }

    @Override
    public ErrorInfo getErrorInfo() {
        return this.errorInfo;
    }
}